package com.uniandes.modelviewer

import grails.converters.JSON
import grailsmodelviz.LookupModelsService;

class ExistingModelsController {

	def listModels() {


		// set response content type to json
		response.contentType    = 'application/json'

		def list =  LookupModelsService.serviceMethod()


		// render json response
		response.setStatus(status, statusText)
		render([written: (status == 200), text: list] as JSON)
	}
}
